import request from '../utils/request';

export const login = (params: any) => request({
    method: 'post',
    url: '/login',
    data: params
})

export const sign = (params: any) => request({
    method: 'post',
    url: '/sign',
    data: params
})

export const check = (params: any) => request({
    method: 'get',
    url: '/check',
    params
})

export const page = (params: any) => request({
    method: 'get',
    url: '/user/page',
    params
})
export const addUser = (params: any) => request({
    method: 'post',
    url: '/user/add',
    data: params
})
// 更新用户信息 参数 id必  password及其余可选
export const updateUser = (params: any) => request({
    method: 'post',
    url: '/user/update',
    data: params
})
export const deleteUser = (params: any) => request({
    method: 'post',
    url: '/user/delete',
    data: params
})
export const updateSelf = (params: any) => request({
    method: 'post',
    url: '/user/updateSelf',
    data: params
})